# -*- conding:UTF-8 -*-

'''
@ Project: p7_flask
@ File: user.py
@ Author: 师路遥
@ Date：2022/6/6 20:09

'''

from flask_restful import fields

user_fields = {
    'uid':fields.Integer,
    'account':fields.String,
    'uname':fields.String,
    'profile_photo':fields.String,
    'gender': fields.Integer,
    'created_time': fields.DateTime
}

channel_fields = {
    'cid':fields.Integer,
    'cname':fields.String,
    'sequence':fields.Integer,
    'ctime':fields.DateTime,
}

# 文章
news_fields = {
    'user_id': fields.Integer,
    "nid": fields.Integer,
    'title': fields.String,
    'cover': fields.String,
    'content': fields.String,
    'comment_count': fields.Integer,
    'good_count': fields.Integer,
    'ctime': fields.DateTime,
    'is_follow':fields.Boolean,
    'is_like':fields.Boolean,

}